Class Boolean

Summary

Fully Qualified Name: Laminas\Filter\Boolean
Extends: AbstractFilter

Description

Methods

Name Description Defined By
__construct() Constructor Boolean
__invoke() Invoke filter as a command AbstractFilter
filter() Defined by Laminas\Filter\FilterInterface Boolean
getCasting() Returns the casting option Boolean
getOptions() Retrieve options representing object state AbstractFilter
getTranslations() Boolean
getType() Returns defined boolean types Boolean
hasPcreUnicodeSupport() AbstractFilter
setCasting() Set the working mode Boolean
setOptions() AbstractFilter
setTranslations() Boolean
setType() Set boolean types Boolean

Method Details

__construct()

Constructor

Parameter Name Type Description
$typeOrOptions int|string|array|\Traversable|null
$casting bool
$translations array

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Defined by Laminas\Filter\FilterInterface

Returns a boolean representation of $value

Parameter Name Type Description
$value null|array|bool|float|int|string

Returns: bool|mixed

getCasting()

Returns the casting option

Returns: bool

getOptions()

Retrieve options representing object state

Returns: array

getTranslations()

Returns: array

getType()

Returns defined boolean types

Returns: int

hasPcreUnicodeSupport()

Returns: bool

setCasting()

Set the working mode

Parameter Name Type Description
$flag bool When

Returns: self

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

setTranslations()

Parameter Name Type Description
$translations array|\Traversable

Returns: self

setType()

Set boolean types

Parameter Name Type Description
$type int|string|array

Returns: self

Top